﻿using Ast.Core.Services;
using Autofac;
using Module = Autofac.Module;

namespace Ast.Core
{
    public class ServiceModule : Module
    {
        protected override void Load(ContainerBuilder builder)
        {
            // device provider will be disposed when root lifetime scope disposinig
            builder.RegisterType<DeviceProvider>()
                .As<IDeviceProvider>()
                .SingleInstance();
        }
    }
}